'use strict';

/**
 * @ngdoc filter
 * @name webApp.filter:trustHtml
 * @function
 * @description
 * # trustHtml
 * Filter in the webApp.
 */
//转换为可信html
angular.module('webApp')
  .filter('trustUrl', function ($sce) {
    return function (input) {
      if(typeof input != 'undefined' && input!=''){
        return $sce.trustAsResourceUrl(input);
      }
    }
  });
